package com.web.commonService.LocalThread;

public class Content {
    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void set(String value) {
        threadLocal.set(value);
    }

    // 从 ThreadLocal 中获取值
    public static String get() {
        return threadLocal.get();
    }

    // 清除当前线程的 ThreadLocal 变量
    public static void remove() {
        threadLocal.remove();
    }
}
